# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=liblzf
pkgver=3.6
pkgrel=1
pkgdesc="A very small data compression library"
url="http://software.schmorp.de/pkg/liblzf.html"
arch="all"
license="BSD-2-Clause"
makedepends="
	autoconf
	automake
	libtool
	"
subpackages="$pkgname-dev"
source="http://dist.schmorp.de/liblzf/liblzf-$pkgver.tar.gz
	liblzf-3.6-autoconf-20140314.patch
	"
options="!check" # No tests

prepare() {
	default_prepare

	sh ./bootstrap.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	DESTDIR="$pkgdir" make DESTDIR="$pkgdir" install
}

sha512sums="701f70245a11e7cf3412b14ed26bf7b1464512d5b0cf3f913e70ebfdfe20574b8ebbae5a78f4b56ac0034d54830380309cac3057ca00a8028edbde3d091141f5  liblzf-3.6.tar.gz
c1381ecbe0d6b599ba0761f4f6f6f31d10cca235b4221908073a565a2dfcb7956900e692cccf04e87b07bf74e49ae2d2d506751243a605827a7703e3ec33a9a2  liblzf-3.6-autoconf-20140314.patch"
